package com.jingdianjichi.subject.application.convert;

import com.jingdianjichi.subject.application.dto.SubjectInfoDTO;
import com.jingdianjichi.subject.application.dto.SubjectLabelDTO;
import com.jingdianjichi.subject.common.entity.PageResult;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.domain.entity.SubjectLabelBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签dto的转换BO
 */
@Mapper
public interface SubjectInfoDTOConverter {
    SubjectInfoDTOConverter INSTANCE= Mappers.getMapper(SubjectInfoDTOConverter.class);


    SubjectInfoBO convertDTOToBO(SubjectInfoDTO subjectInfoDTO);

    PageResult<SubjectInfoDTO> converBoPageToDTOPageList(PageResult<SubjectInfoBO> boPageResult);

    SubjectInfoDTO convertBoToDTO(SubjectInfoBO boResult);

    List<SubjectInfoDTO> convertBoToDTOList(List<SubjectInfoBO> boList);


}
